#include "socket/socket.h"
#include "user.h"
using namespace std;

int main()
{
    struct sockaddr_in sock_addr;
    int id;
    string passwd;

    //construct the server address
    construct_server_sockaddr(sock_addr);
    cout<<"User ID: ";
    cin>>id;
    cout<<"\nUser Password: ";
    cin>>passwd;
}

void construct_server_sockaddr(struct sockaddr_in &sock_addr)
{
    char host[HOSTLEN];

    gethostname(host, HOSTLEN);
    make_internet_address(host, PORTNUM, &sock_addr);
}
